<include file="Public/mobile_head"/>
<link href="{:ADDON_PUBLIC_PATH}/userCenter1.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">

<body>
<div id="container" class="container body">
	<if condition="!empty($list)">
		<div class="conpons_list">
			<volist name='list' id="vo">

				<if condition='$vo[can_use]'>
					<a class="conpon_item"
					   href="{:addons_url('Coupon://Wap/show',array('id'=>$vo['id'],'sn_id'=>$vo['sn_id']))}">
						<else/>
						<a class="conpon_item conpon_item_disable" href="javascript:;">
				</if>
				<div class="coupon_head"
				<if condition='$vo[can_use]'>
					style="background:{$vo.head_bg_color}"
					<else/>
					style="background:#aaa"
				</if>
				>
				<notempty name="vo.shop_logo">
					<img src="{$vo.shop_logo|get_cover_url}">
					<else/>
					<img src="__IMG__/pic_money.png"/>
				</notempty>
				{$vo.title}
				<div class="line"></div>
		</div>
		<div class="coupon_bottom">
			<span class="fl">{$vo.shop_name}</span>
                        <span class="fr">
                        	<if condition='$vo[is_use]'>
		                        已使用
		                        <else/>
		                        <notempty name="vo.over_time">有效期至:{$vo.over_time|time_format}</notempty>
	                        </if>
                        	
                        </span>
		</div>
		</a>
		</volist>
</div>

</if>
<if condition="empty($list)">
	<div class="empty_default">
		<img src="__IMG__/blank_pic.png" width="100"/>
		<br/>
		你目前还没优惠券~</p>
	</div>
</if>
<p class="copyright">{$system_copy_right}</p>

</div>
<include file="Public/mobile_foot"/>
</body>
<script type="text/javascript">
	document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
		WeixinJSBridge.call('hideToolbar');
	});
</script>
</html>
